//============================================================================
// Name        : robak_serwer.cpp
// Author      : tomaszd
// Version     :
// Copyright   : Copyright Reserved 2008
// Description : Robak serwer
//============================================================================

#include <iostream.h>
#include "UdpServer.h"

using namespace std;

int main() {

	UdpServer s;
	s.udpServerConfig();
	s.init();
	s.addUdpPlayers();
	s.game_map.width = 16;
	s.game_map.height = 9;
	s.send((char*)&s.game_map, sizeof(map));

	int r = 1;
	while(r < 13)
	{
		s.receiveUdpPlayersMoves(r);
		++r;
		s.udp_players_moves.round = r;
		s.send((char*)&s.udp_players_moves, sizeof(moves));
	}
	cout << "git" << endl;
	return 0;
}
